const express = require('express');
const router = express.Router();
const newsHandle = require('../router_handle/news.js')
// 新闻数据获取
router.get('/news', newsHandle.getNewsRouter)
router.get('/news/:id', newsHandle.inquireNewsById)
router.delete('/news/:id', newsHandle.deleteNewsRouter)
router.post('/news/add', newsHandle.addNewsRouter)
router.put('/news/:id', newsHandle.updateNewsRouter)
module.exports = router;